package model

type FrontUser struct {
	Id        int
	FrontName string
	Role      string
}

type AdminUser struct {
	Id        int
	AdminName string
	Role      string
}

type CreUserFunc func(id int, name string) interface{}

func NewFrontUser() CreUserFunc {
	return func(id int, name string) interface{} {
		return &FrontUser{
			Id:        id,
			FrontName: name,
			Role:      "front",
		}
	}

}
func NewAdminUser() CreUserFunc {
	return func(id int, name string) interface{} {
		return &AdminUser{
			Id:        id,
			AdminName: name,
			Role:      "admin",
		}
	}
}
